package com.tangsm.spring.boot.xml.wrapper;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;

/**
 * GET请求参数包装，下划线转成驼峰
 *
 * @author tangyb
 */
public class ParameterNameRequestWrapper extends HttpServletRequestWrapper {

    public ParameterNameRequestWrapper(HttpServletRequest request) {
        super(request);
    }

    @Override
    public String[] getParameterValues(String name) {
        // 转为下划线参数
        // String originalName = StringUtils.toUnderlineCase(name);
        return super.getParameterValues(name);
    }
}
